import axios from "axios";

export function fetchList() {
	return axios.get('/api/list')
}

interface DataState {
  avator: string;
  nickname: string;
  createTime: string;
  content: string;
  images: string[];
}

export function addList(data: DataState) {
	return axios.post('/api/list', data)
}